<?php

/**
 * Project: Espolon
 * Licence: BSD License
 * Link: http://espolon.org/
 * Copyright: Nicolas de Bari Embriz Garcia Rojas <nbari at espolon dot org>
 * Author: Nicolas de Bari Embriz Garcia Rojas <nbari at espolon dot org>
 * Version: Beta
 */

/**
 *  Database
 */
define('DB_TYPE', 'mysqli');       #Database Server type (These are ADOdb supported dbs)
define('DB_USERNAME', 'espolon');  #SQL Username
define('DB_PASSWORD', 'espolon');  #SQL Password
define('DB_HOST', 'localhost');    #SQL Database Hostname
define('DB_DATABASE', 'espolon');  #SQL Database Name
define('DSN', DB_TYPE.'://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_HOST.'/'.DB_DATABASE);
define('DB_MYSQLDUMP', '/usr/local/mysql/bin/mysqldump'); # path to mysql_dump

/**
 * SITE ROOT
 */
define('SITE_ROOT', realpath(dirname(__FILE__).'/').'/');

/**
 * CACHE DIR for delivery of content
 */
define('CACHE_DIR', SITE_ROOT.'../cache/');

/**
 *  Smarty settings
 */
define('SMARTY_DEBUG', false);
define('SMARTY_CACHING', false);
define('SMARTY_CACHE_LIFETIME', 300);
define('SMARTY_DIR', SITE_ROOT.'includes/ThirdParty/smarty/'); # path to Smarty libs
define('SMARTY_TEMPLATE_DIR', SITE_ROOT.'themes');
define('SMARTY_COMPILE_DIR', SITE_ROOT.'smarty/templates_c');
define('SMARTY_CONFIG_DIR', SITE_ROOT.'smarty/configs');
define('SMARTY_CACHE_DIR', SITE_ROOT.'smarty/cache');
define('SHOW_TIMER', true);

/**
 *  ADOdb settings
 */
define('ADODB_DEBUG', false);
define('ADODB_DIR', SITE_ROOT.'includes/ThirdParty/adodb5/'); #path to ADOdb directory
define('ADODB_CACHE_DIR', SITE_ROOT.'adodbcache');            #path to ADOdb cache directory

/**
 *  PHPMailer
 */
define('SMTP_HOSTS', 'localhost'); # Sets the SMTP hosts. All hosts must be separated by a semicolon. 'localhost;smtp.ejemplo.org:465'
define('SMTP_AUTH', false); # Sets SMTP authentication: (true or false). Utilizes the SMTP_USERNAME and SMTP_PASSWORD variables.
define('SMTP_USERNAME', ''); # Sets SMTP username.
define('SMTP_PASSWORD', ''); # Sets SMTP password.

/**
 * MagpieRSS
 */
define('MAGPIE_DIR', SITE_ROOT.'includes/ThirdParty/magpierss/');
define('MAGPIE_CACHE_DIR', SITE_ROOT.'/cache/magpie_cache');

/**
 *  ERRORS
 */
define('DISPLAY_ERRORS', true);
// settings about mailing the error messages to admin
define('SEND_ERROR_MAIL', false);
define('ERROR_MAIL_TO', '');
define('ERROR_MAIL_FROM', 'error@espolon.org');
define('ERROR_MAIL_FROMNAME', 'espolon.org');
define('ERROR_MAIL_SUBJECT','error en espolon.org');
// log errors to a file
define("LOG_ERRORS", true);
define("LOG_ERRORS_FILE", SITE_ROOT.'../logs/errors.log');

/**
 * date.timezone
 * http://www..net/manual/en/timezones.
 */
ini_set('date.timezone','America/Mexico_City');

?>